package com.yunsom.testdemo.design.singleton;

/**
 * @author Xbao
 * @version 1.0
 * @description 单例模式
 * @date 2021/3/9 18:35
 */
public class SingletonTest {

  public static void main(String[] args) {
    SingleObject singleObject =  SingleObject.getInstance();
    singleObject.showMessage();
    EnumSingleton.INSTANCE.doSomething();
  }
}
